🚀 Update dependencies and Go version to 1.26#2183
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s Go toolchain target to Go 1.26 and refreshes a set of Go module dependencies, aligning local/Docker builds with the new version.
Changes:
- Bump
go.modtogo 1.26and update several direct/indirect dependencies. - Update Docker/Docker Compose and Makefile defaults to build with Go 1.26.
- Refresh
go.sumto match the updated module graph.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
go.mod |
Updates the Go language version to 1.26 and bumps module versions accordingly. |
go.sum |
Updates checksums to match dependency/version changes from go.mod. |
Dockerfile |
Updates the default Go base image version used for builds. |
docker-compose.yml |
Updates the default Go version passed as a build arg. |
Makefile |
Updates the Go version used for Docker build targets. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| module github.com/mkmccarty/TokenTimeBoostBot | ||
|
|
||
| go 1.25.7 | ||
| go 1.26 |
There was a problem hiding this comment.
Bumping the go.mod go directive to 1.26 will make builds/tests fail anywhere that still installs Go 1.25.x (Go will error with “go.mod requires go >= 1.26”). The repo’s GitHub Actions CI workflow(s) are still pinned to Go 1.25.6, so they need to be updated to 1.26 (or to read from a single shared version source) to keep CI green.
| go 1.26 | |
| go 1.25 |
| # Build from your local Dockerfile and auto-use the Go version in go.mod | ||
| build: | ||
| context: . | ||
| args: | ||
| GO_VERSION: "${GO_VERSION:-1.25}" | ||
| GO_VERSION: "${GO_VERSION:-1.26}" |
There was a problem hiding this comment.
The comment says the compose build will “auto-use the Go version in go.mod”, but the actual value comes from the GO_VERSION env var defaulting to 1.26. This is easy to let drift from go.mod; either update the comment to match behavior or ensure there’s a single source of truth for the Go version used by Docker builds.
No description provided.